<!-- 载入系统通用设置  -->
<?php include_once($_SERVER['DOCUMENT_ROOT']."/controller/common/common_setting_unit.php"); ?>


<!DOCTYPE html PUBLIC
    "-//W3C//DTD XHTML 1.0 Transitional//EN"
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <?php include_once('../../../modules/head.php'); ?>
    <?php //head 中统一载入了。那部分的工作，应该是controller中引入通用的common的。include_once("../controller/detail-edit.php"); ?>
    <?php include_once('modules/mod-nkeditor.php'); ?>
</head>






<body>

<div id="topbar">
    <?php include '../../../modules/topbar.php'; ?>
</div>



<div id="container">
    <!--Container端點01-->
    <div id="maincontent" class="list">
        <!--maincontent端點01-->




        <div id="sidebar">
            <?php include '../../../modules/sidebar.php'; ?>
        </div>


<div id="content" class="contact">
<fieldset class="layui-elem-field layui-field-title" style="margin-top: 30px;">
<legend><h1>编辑 : 联系信息 </h1></legend>
</fieldset>










<div class="detail-box ">


<ul class="detail-boxes detail-boxing">
<form id="contact_detail" method="post"
      class="layui-form  layui-form-pane"
      action="detail-edit-function.php" enctype="multipart/form-data"
      name="uploadfile">

    <input name="contact_nid" type="hidden" value="<?php echo $contact['nid']?>" />



    <li class="layui-form-item cnname">
        <label class="layui-form-label">中文名字：</label>
        <div class="layui-input-block">
            <input type="text" class="layui-input"
                   name="ai_cnname"
                   value="<? echo $contact['cnname'] ?>">
        </div>
    </li>


    <li class="layui-form-item enname ">
        <label class="layui-form-label">英文名字：</label>

        <div class="layui-input-block">
            <input type="text" class="layui-input" name="ai_enname" value="<? echo $contact['enname'] ?>">
        </div>
    </li>


    <li class="layui-form-item contact_name">
        <label class="layui-form-label">联系人名称：</label>
        <div class="layui-input-block">
            <input type="text" class="layui-input" name="ai_contact_name"
                   value="<? echo $contact['contact_name'] ?>">
        </div>
    </li>


    <li class="layui-form-item banner">
        <label class="layui-form-label">项目横幅：</label>
        <img src="/uploadfiles/<? echo $theme_folder ?>/<? echo $contact['banner'] ?>"
            width="100"/> <? $detail_banner_img_width ?>
    </li>


    <li class="layui-form-item banner"><label class="layui-form-label">上传文件：</label>
        <input type="file" name="banner" onchange="fileChange(this);"/>
    </li>


    <li class="layui-form-item introduce">
        <label class="layui-form-label">简介资料：</label>

        <div class="layui-input-block" style="width: 800px; ">
            <textarea id="ai_intro" style="width:800px;height:400px;visibility:hidden;"
                      name="ai_intro"><? echo $contact['intro'] ?>
            </textarea>
        </div>
    </li>


    <li class="layui-form-item ai_detail">
        <label class="layui-form-label">联系详情：</label>
        <textarea name="ai_detail"
                  style="width:800px;height:400px;visibility:hidden;"><? echo $contact['detail'] ?>
        </textarea>
    </li>


    <li class="layui-form-item qq"><label class="layui-form-label">联系QQ：</label>

        <div class="layui-input-block"><input type="text" class="layui-input" name="ai_qq" size="20"
                                              value="<? echo $contact['qq'] ?>"></div>
    </li>
    <li class="layui-form-item email"><label class="layui-form-label">电子邮箱：</label>

        <div class="layui-input-block"><input type="text" class="layui-input" name="ai_email" size="20"
                                              value="<? echo $contact['email'] ?>"></div>
    </li>
    <li class="layui-form-item phone"><label class="layui-form-label">联系电话：</label>

        <div class="layui-input-block"><input type="text" class="layui-input" name="ai_phone" size="20"
                                              value="<? echo $contact['phone'] ?>"></div>
    </li>
    <li class="layui-form-item mobile"><label class="layui-form-label">移动电话：</label>

        <div class="layui-input-block"><input type="text" class="layui-input" name="ai_mobile" size="20"
                                              value="<? echo $contact['mobile'] ?>"></div>
    </li>
    <li class="layui-form-item businesshours"><label class="layui-form-label">服务时间：</label>

        <div class="layui-input-block"><input type="text" class="layui-input" name="ai_severtime" size="20"
                                              value="<? echo $contact['severtime'] ?>"></div>
    </li>
    <li class="layui-form-item contact-address"><label class="layui-form-label">联系地址：</label>

        <div class="layui-input-block"><input type="text" class="layui-input" name="ai_address" size="20"
                                              value="<? echo $contact['address'] ?>"></div>
    </li>
    <li class="layui-form-item zipcode"><label class="layui-form-label">邮政编码：</label>

        <div class="layui-input-block"><input type="text" class="layui-input" name="ai_zipcode" size="20"
                                              value="<? echo $contact['zipcode'] ?>"></div>
    </li>
    <li class="layui-form-item fax"><label class="layui-form-label">传真号码：</label>

        <div class="layui-input-block"><input type="text" class="layui-input" name="ai_fax" size="20"
                                              value="<? echo $contact['fax'] ?>"></div>
    </li>


    <fieldset class="layui-elem-field layui-field-title" style="margin-top: 30px;" id="socislmedia">
        <legend>社交媒体</legend>
    </fieldset>


    <li class="layui-form-item qrcode"><label class="layui-form-label">二维码：</label>
        <img src="/uploadfiles/<? echo $theme_folder ?>/<? echo $contact['qrcode'] ?>" width="100"/>
    </li>

    <li class="layui-form-item qrcode"><label class="layui-form-label">上传文件：</label>
        <input type="file" name="qrcode" onchange="fileChange(this);"/>
    </li>


    <li class="layui-form-item douyin_qrcode"><label class="layui-form-label">抖音二维码：</label>
        <img src="/uploadfiles/<? echo $theme_folder ?>/<? echo $contact['dycode'] ?>" width="100"/>
    </li>

    <li class="layui-form-item douyin_qrcode"><label class="layui-form-label">上传文件：</label>
        <input type="file" name="dycode" onchange="fileChange(this);"/>
    </li>

    <li class="layui-form-item wechat_video_qrcode"><label class="layui-form-label">视频号二维码：</label><img
            src="/uploadfiles/<? echo $theme_folder ?>/<? echo $contact['wxvcode'] ?>" width="100"/></li>
    <li class="layui-form-item wechat_video_qrcode"><label class="layui-form-label">上传文件：</label><input type="file"
                                                                                                        name="wxvcode"
                                                                                                        onchange="fileChange(this);"/>
    </li>


    <li class="layui-form-item douyin_num">
        <label class="layui-form-label">抖音号：</label>
        <div class="layui-input-block">
            <input type="text" class="layui-input" name="ai_douyin_num"
                   size="20" value="<? echo $contact['douyin_num'] ?>">
        </div>
    </li>


    <li class="layui-form-item weibo"><label class="layui-form-label">官方微博：</label>

        <div class="layui-input-block"><input type="text" class="layui-input" name="ai_weibo" size="20"
                                              value="<? echo $contact['weibo'] ?>"></div>
    </li>


    <li class="layui-form-item wechat"><label class="layui-form-label">官方微信：</label>

        <div class="layui-input-block"><input type="text" class="layui-input" name="ai_weixin" size="20"
                                              value="<? echo $contact['weixin'] ?>"></div>
    </li>


    <li class="layui-form-item whatsapp"><label class="layui-form-label">whatsapp：</label>

        <div class="layui-input-block"><input type="text" class="layui-input" name="ai_whatsapp" size="20"
                                              value="<? echo $contact['whatsapp'] ?>"></div>
    </li>

    <li class="layui-form-item skype"><label class="layui-form-label">SKYPE：</label>

        <div class="layui-input-block"><input type="text" class="layui-input" name="ai_skype" size="20"
                                              value="<? echo $contact['skype'] ?>"></div>
    </li>

    <li class="layui-form-item twitter"><label class="layui-form-label">Twitter：</label>

        <div class="layui-input-block"><input type="text" class="layui-input" name="ai_twitter" size="20"
                                              value="<? echo $contact['twitter'] ?>"></div>
    </li>
    <li class="layui-form-item facebook"><label class="layui-form-label">facebook：</label>

        <div class="layui-input-block"><input type="text" class="layui-input" name="ai_facebook" size="20"
                                              value="<? echo $contact['facebook'] ?>"></div>
    </li>


    <li class="layui-form-item pinterest"><label class="layui-form-label">pinterest：</label>

        <div class="layui-input-block"><input type="text" class="layui-input" name="ai_pinterest" size="20"
                                              value="<? echo $contact['pinterest'] ?>"></div>
    </li>
    <li class="layui-form-item tumblr"><label class="layui-form-label">tumblr：</label>

        <div class="layui-input-block"><input type="text" class="layui-input" name="ai_tumblr" size="20"
                                              value="<? echo $contact['tumblr'] ?>"></div>
    </li>
    <li class="layui-form-item linkedin"><label class="layui-form-label">linkedin:</label>

        <div class="layui-input-block"><input type="text" class="layui-input" name="ai_linkedin" size="20"
                                              value="<? echo $contact['linkedin'] ?>"></div>
    </li>

    <li class="layui-form-item youtube"><label class="layui-form-label">youtube：</label>

        <div class="layui-input-block"><input type="text" class="layui-input" name="ai_youtube" size="20"
                                              value="<? echo $contact['youtube'] ?>"></div>
    </li>

    <li class="layui-form-item instagram" style="display:none"><label class="layui-form-label">instagram：</label>

        <div class="layui-input-block"><input type="text" class="layui-input" name="ai_instagram" size="20"
                                              value="<? echo $contact['instagram'] ?>"></div>
    </li>


    <!--    <li class="layui-form-item map" style="display:none"><label class="layui-form-label">地图代码：</label>-->
<!---->
<!--        <div class="layui-input-block">-->
<!--            <textarea type="text" class="layui-input" name="contact_map" style="width: 840px;height: 80px"></textarea>-->
<!--        </div>-->
<!--    </li>-->




    <input name="sys_part" type="hidden" value="<? echo $system_part ?>"/>


    <hr/>
    <div class="function">
        <input type="submit" class="layui-btn" value="确认"/>
        <input type="reset" class="layui-btn" value="重置"/>
    </div>


</form>
</ul>
</div>

<!--content端點01-->
</div>
<!--maincontent端點01-->
<br class="clearfloat" />
</div>
<!--container端點01-->
</div>




<?php include  ROOT_PATH_."/controller/modules/footer.php"; ?>
</body>
</html>
